import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/other',
    name: 'other',
    component: () => import('../views/OtherView.vue')
  },
  {
    path: '/bView',
    name: 'bView',
    component: () => import('../views/BView.vue')
  },
  {
    path: '/cView',
    name: 'cView',
    component: () => import('../views/CView.vue')
  },
  {
    path: '/eView',
    name: 'eView',
    component: () => import('../views/EView.vue')
  },
  {
    path: '/hView',
    name: 'hView',
    component: () => import('../views/HView.vue')
  },
  {
    path: '/kView',
    name: 'kView',
    component: () => import('../views/KView.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
